function loadLockScreen(){
    document.getElementById("lockScrren").submit();
    
}

function loginValidateByAjax(){
    
    var requestUrl = '/GedeonMvc/login/loginByAjax'   ;
     
              $.ajax({
        type: "POST",
        url: requestUrl,
        data: "userName="+userName.value+"&password="+password.value ,
        success: function(response){ 
            if($.trim(response) == "0"){
                document.getElementById("wrongPassword").style.display = "";
            }else{
                document.getElementById("form").submit();
            } 
        },
        error: function(e){
        alert('Error: ' + e);
        }
        });
}

function ocultarDiv(){
    
    document.getElementById("wrongPassword").style.display = "none";
}

